<include file="public/header"/>
<style>
    .form-required{color: red}
</style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInUp">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <if condition="$Request.action eq 'addpukan'">
                    <h5>发布普刊价格</h5>
                    </if>
                    <if condition="$Request.action eq 'editpukan'">
                        <h5>编辑价格</h5>
                    </if>
                    <if condition="$Request.action eq 'addhexin'">
                        <h5>发布核心期刊价格</h5>
                    </if>
                    <if condition="$Request.action eq 'edithexin'">
                        <h5>编辑价格</h5>
                    </if>
                    <div class="ibox-tools">
                        <!--<a href="{:url('Menu/index')}" class="btn btn-primary btn-xs">后台菜单</a>
                        <a href="#" class="btn btn-primary btn-xs active">添加菜单</a>
                        <a href="{:url('Menu/lists')}" class="btn btn-primary btn-xs">所有菜单</a>-->
                    </div>
                </div>
                <div class="ibox-content">

                    <if condition="$Request.action eq 'addpukan'">
                        <form class="form-horizontal js-ajax-form" action="{:url('addPukan')}" method="post">
                    </if>
                    <if condition="$Request.action eq 'editpukan'">
                        <form class="form-horizontal js-ajax-form" action="{:url('editPukan',array('id'=>$data.id))}" method="post">
                    </if>
                    <if condition="$Request.action eq 'addhexin'">
                        <form class="form-horizontal js-ajax-form" action="{:url('addHexin')}" method="post">
                    </if>
                    <if condition="$Request.action eq 'edithexin'">
                        <form class="form-horizontal js-ajax-form" action="{:url('editHexin',array('id'=>$data.id))}" method="post">
                    </if>
                    <!--<form class="form-horizontal js-ajax-form" action="{:url('addPukan')}" method="post">-->
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="form-required">*</span>类别</label>
                            <div class="col-md-8">
                                <input type="text" class="form-control" id="input-category" name="category" required value="{$data.category ?? ''}">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="form-required">*</span>刊物名称</label>
                            <div class="col-md-8">
                                <input type="text" class="form-control" id="input-name" name="name" required value="{$data.name ?? ''}">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="form-required">*</span>级别</label>
                            <div class="col-md-8">
                                <input type="text" class="form-control" id="input-level" name="level" required value="{$data.level ?? ''}">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">主办方</label>
                            <div class="col-md-8">
                                <textarea class="form-control" id="input-zhubanfang" name="zhubanfang" rows="4">{$data.zhubanfang ?? ''}</textarea>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="form-required">*</span>刊期类别</label>
                            <div class="col-md-8">
                                <input type="text" class="form-control" id="input-frequency" name="frequency" required value="{$data.frequency ?? ''}">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="form-required">*</span>收录情况</label>
                            <div class="col-md-8">
                                <input type="text" class="form-control" id="input-shoulu" name="shoulu" required value="{$data.shoulu ?? ''}">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">费用</label>
                            <div class="col-md-8">
                                <input type="number" class="form-control" id="input-price" name="price" required value="{$data.price ?? ''}">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">字符标准</label>
                            <div class="col-md-8">
                                <input type="text" class="form-control" id="input-number" name="number" required value="{$data.number ?? ''}">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">备注</label>
                            <div class="col-md-8">
                                <textarea class="form-control" id="input-commint" name="commint">{$data.commint ?? ''}</textarea>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">收稿方向</label>
                            <div class="col-md-8">
                                <input type="text" class="form-control" id="input-shougao" name="shougao" required value="{$data.shougao ?? ''}">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">刊期</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" id="input-kanqi" name="kanqi" required value="{$data.kanqi ?? ''}">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">出刊时间</label>
                            <div class="col-md-8">
                                <input type="text" class="form-control" id="input-chukan_time" name="chukan_time" required value="{$data.chukan_time ?? ''}">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">状态</label>
                            <div class="col-md-8">
                                <div class="radio i-checks">
                                    <label>
                                        <input type="radio" value="1" name="status" checked> <i></i> 显示</label>
                                        <input type="radio" value="0" name="status"> <i></i> 不显示</label>
                                </div>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <if condition="$Request.action eq 'addpukan'">
                                    <input type="hidden" name="type"  value="1">
                                    <else/>
                                    <input type="hidden" name="type"  value="{$data.type ?? '2'}">
                                </if>

                                <button class="btn btn-primary" type="submit">保存内容</button>
                                <button type="button" class="btn btn-default" onclick="javascript:history.back(-1);" >返回</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="__TMPL__/public/assets/js/jquery.min.js?v=2.1.4"></script>
<script src="__TMPL__/public/assets/js/bootstrap.min.js?v=3.3.5"></script>
<script src="__TMPL__/public/assets/js/content.min.js?v=1.0.0"></script>
<script src="__TMPL__/public/assets/js/plugins/iCheck/icheck.min.js"></script>
<script>
    $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
</script>
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
</body>
</html>